# # !/usr/bin/env python
# # coding=utf-8
#
# from aliyunsdkcore.client import AcsClient
# from aliyunsdkcore.request import CommonRequest
# client = AcsClient('LTAIObLknNFep9uO', 'yV2jwvz4rTvKSjqgcaKCXus2G1D4cw', 'default')
#
# request = CommonRequest()
# request.set_accept_format('json')
# request.set_domain('dysmsapi.aliyuncs.com')
# request.set_method('POST')
# request.set_protocol_type('https')  # https | http
# request.set_version('2017-05-25')
# request.set_action_name('SendSms')
#
#
# def send_sms(mobile, sms_code):
#     request.add_query_param('PhoneNumbers', mobile)
#     request.add_query_param('SignName', "ZFYM漫画官网")
#     request.add_query_param('TemplateCode', "SMS_168346577")
#     request.add_query_param('TemplateParam', '{"code":"%s"}' % sms_code)
#     print(sms_code)
#     response = client.do_action(request)
#     # python2:  print(response)
#     print(str(response, encoding='utf-8'))
#
#
# if __name__ == '__main__':
#     send_sms("17681023775", 654321)
